/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;
import olympicgameslogic.ClassificationType.MEASUREUNIT;



/**
 *
 * @author 75
 */
public class ResultGeneric extends Result implements Serializable{
   private float result;

   public ResultGeneric() {
   }

   public ResultGeneric(MEASUREUNIT unit) {
      super(unit);
   }

   public ResultGeneric(float result) {
      this.result = result;
   }

   public ResultGeneric(float result, MEASUREUNIT unit) {
      super(unit);
      this.result = result;
   }

   /**
    * @return the result
    */
   public float getResult() {
      return result;
   }

   /**
    * @param result the result to set
    */
   public void setResult(float result) {
      this.result = result;
   }

   @Override
   public boolean isEqual(Object obj) {
      return (result == ((ResultGeneric)obj).getResult());
   }

   
}
